import $axios from './index.js'

// 幻灯片分类列表
function slideCateList(data) {
  const url = '/slideCate/index'
  return $axios.get(url, data)
}
// 幻灯片分类添加
function slideCateSave(data) {
  const url = '/slideCate/save'
  return $axios.post(url, data)
}
// 幻灯片分类详情
function slideCateInfo(data) {
  const url = '/slideCate/read'
  return $axios.get(url, data)
}
// 幻灯片分类编辑
function slideCateUpdate(data) {
  const url = '/slideCate/update'
  return $axios.post(url, data)
}
// 幻灯片分类删除
function slideCateDelete(data) {
  const url = '/slideCate/delete'
  return $axios.post(url, data)
}

// 幻灯片列表
function slideList(data) {
  const url = '/slide/index'
  return $axios.get(url, data)
}
// 幻灯片添加
function slideSave(data) {
  const url = '/slide/save'
  return $axios.post(url, data)
}
// 幻灯片详情
function slideInfo(data) {
  const url = '/slide/read'
  return $axios.get(url, data)
}
// 幻灯片编辑
function slideUpdate(data) {
  const url = '/slide/update'
  return $axios.post(url, data)
}
// 幻灯片删除
function slideDelete(data) {
  const url = '/slide/delete'
  return $axios.post(url, data)
}

export default {
  slideCateList,
  slideCateSave,
  slideCateInfo,
  slideCateUpdate,
  slideCateDelete,
  slideList,
  slideSave,
  slideInfo,
  slideUpdate,
  slideDelete
}
